package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 
 */
@Data
@TableName(value = "cms_product_spec")
@Table(name = "cms_product_spec", comment = "商品规格")
public class CmsProductSpec implements Serializable {
    /**
     * 规格ID
     */
    @TableId
    @ApiModelProperty(value = "规格ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "规格ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long specId;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @Column(comment = "产品ID")
    private Long productId;

    /**
     * 规格名称
     */
    @ApiModelProperty(value = "规格名称")
    @Column(comment = "规格名称")
    private String specName;

    /**
     * 规格值（逗号分隔）
     */
    @ApiModelProperty(value = "规格值（逗号分隔）")
    @Column(comment = "规格值（逗号分隔）", length = 2000)
    private String specValue;

    private static final long serialVersionUID = 1L;


}